﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WindowsFormsApplication1
{
    public class DBHelper
    {

        public static string ConnStr 
        {
            get { return System.Configuration.ConfigurationSettings.AppSettings["connstr"].ToString(); }
            private set { }
            
        }
        public static string GetConnStr()
        {
            
            return System.Configuration.ConfigurationSettings.AppSettings["connstr"].ToString();
        }

        public static DataTable Query(string sql)
        {
            using (new System.Data.OleDb.OleDbConnection()
            {
                public static string GetConnStr()
        {

            return System.Configuration.ConfigurationSettings.AppSettings["connstr"].ToString();
        }
    }
        }
    }
}
